package com.commerce.service;

import com.commerce.model.AD;
import com.commerce.page.ADPage;
import com.commerce.page.Page;

/**
 * 广告接口
 */
public interface ADService extends BeanService<AD> {
    /**
     * 分辨查询
     * @param adPage
     * @return
     */
    Page selectByPage(ADPage adPage);

    /**
     * 开启或关闭广告
     * @param id
     * @return
     */
    String updateByOpen(int id);
}
